package com.xyw.his00.pojo.dbpojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.extern.jackson.Jacksonized;
import org.springframework.validation.annotation.Validated;

@TableName("department")
@Validated
@Data
@Jacksonized
public class Department {
    @JsonProperty("id")
    @TableId(value="id",type = IdType.AUTO)
    private Integer id;
    @NotNull
    @JsonProperty("dept_ode")
    @Size(min = 1,max=64,message = "部门号长度必须在1到64个字符之间")
    private String deptCode;//部门号
    @Size(min = 1,max=64,message = "部门名长度必须在1到64个字符之间")
    @JsonProperty("dept_name")
    private String deptName;//部门名字
    @Size(min = 1,max=64,message = "部门类型长度必须在1到64个字符之间")
    @JsonProperty("dept_type")
    private String deptType;//部门类型
    @JsonProperty("delmark")
    private Integer delmark;//逻辑删除
}
